<template>
  <div>
    <el-table :data="[enterprise]" border style="width: 100%">
      <el-table-column prop="name" label="企业名称" width="180">
      </el-table-column>
      <el-table-column prop="address" label="公司注册地址"> </el-table-column>
      <el-table-column prop="affiliation" label="机构类型"> </el-table-column>
      <el-table-column prop="enterpriseNature" label="企业性质">
      </el-table-column>
      <el-table-column prop="doe" label="成立日期"> </el-table-column>
      <el-table-column prop="corpn" label="法人/负责人"> </el-table-column>
      <el-table-column prop="corpnIdcard" label="法人/负责人身份证" width="180">
      </el-table-column>
      <el-table-column prop="businessScope" label="经营范围"> </el-table-column>
      <el-table-column prop="profile" label="公司简介"> </el-table-column>
      <el-table-column prop="businessLicenseImage" label="营业执照扫描件">
      </el-table-column>
      <el-table-column prop="businessLicenseGp" label="营业执照有效期">
      </el-table-column>
      <el-table-column prop="corpnIdcardImage" label="法人/负责人身份证扫描件">
      </el-table-column>
      <el-table-column prop="bank" label="开户行"> </el-table-column>
      <el-table-column prop="account" label="银行账号"> </el-table-column>
      <el-table-column prop="addr" label="开户行地址"> </el-table-column>
      <el-table-column prop="mobile" label="单位注册电话"> </el-table-column>
      <el-table-column prop="contactAddress" label="单位注册地址">
      </el-table-column>
      <el-table-column prop="registeredCapital" label="注册资本（万元）">
      </el-table-column>
      <el-table-column prop="paidinCapital" label="实缴资本"> </el-table-column>
      <el-table-column
        prop="accountLicence"
        label="开户许可证/基本户信息存款证"
      >
      </el-table-column>
      <el-table-column
        prop="corpnIdcardImage"
        label="负责人身份证扫描件"
        width="180"
      >
      </el-table-column>
    </el-table>
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
    <h1>资料上传</h1>
    <FileUpload
      v-model="uploadFiles"
      :file-size="100"
      :file-type="['pdf', 'zip', 'rar', 'png', 'jpg', 'png', 'jpeg']"
      :limit="10"
      :is-show-tip="true"
      :is-show-file-list="true"
      @input="handleFilesChange"
    ></FileUpload>
    <br /><br /><br />
    <hr />
    <el-button type="primary" plain @click="submit">提交</el-button>
  </div>
</template>

<script>
import { getEnterprise } from "./a";
import FileUpload from "@/components/FileUpload/index";
export default {
  components: { FileUpload },
  created() {
    const { id } = this.$route.query;
    this.id = id;
    this.getList();
  },
  data() {
    return {
      id: null,
      enterprise: {},
      uploadFiles: [],
      obj: {}
    };
  },
  methods: {
    submit() {
      this.$message.success("报名成功");
      this.$router.push({ path: "/enterprise/myBidding" });
    },
    getList() {
      getEnterprise(this.id).then(res => {
        // console.log("res", res.data);
        this.enterprise = res.data;
      });
    },
    handleFilesChange(files) {
      this.uploadFiles = files;
    }
  }
};
</script>
<style lang="scss" scoped></style>
